package cn.com.shopec.erp.financing.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
/**
 * 
 * 单据有效设置
 * 
 * */
@Entity
@Table(name = "TBL_PURCHASE_ORDER_SET")

public class PurchaserOrder
{
    /*id*/
    private String id;
    /*编码*/
    private String code;
    /*采购单类型 1:退货单 2：采购单*/
    private int purchaseType;
    /*有效期*/
    private int periodValidity;
    /*删除标识*/
    private int deleteFlag;
	
	
     public PurchaserOrder() { }
     
     
     @GenericGenerator(name = "generator", strategy = "uuid.hex")
     @Id
     @GeneratedValue(generator = "generator")
     @Column(name = "id", unique = true, nullable = false, length = 32)
     public String getId()
     {
          return id;
     }
     public void setId(String id)
     {
          this.id = id;
     }
     @Column(name = "code")
     public String getCode()
     {
          return code;
     }
     public void setCode(String code)
     {
          this.code = code;
     }
     @Column(name = "purchase_type")
     public int getPurchaseType()
     {
          return purchaseType;
     }
     public void setPurchaseType(int purchaseType)
     {
          this.purchaseType = purchaseType;
     }
     @Column(name = "period_validity")
     public int getPeriodValidity()
     {
          return periodValidity;
     }
     public void setPeriodValidity(int periodValidity)
     {
          this.periodValidity = periodValidity;
     }
     @Column(name = "delete_flag")
     public int getDeleteFlag()
     {
          return deleteFlag;
     }
     public void setDeleteFlag(int deleteFlag)
     {
          this.deleteFlag = deleteFlag;
     }
 
}
